<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
    <title>Title</title>
    <link rel="stylesheet" href="/static/css/bootstrap.min.css">
    <script src="/static/js/jquery-3.2.1.js"></script>
    <script src="/static/js/bootstrap.min.js"></script>
    <script src="http://malsup.github.io/jquery.form.js" type="text/javascript"></script>
    <style>
        .messages{
            background: #EEE8CD;
            padding: 5px;
            margin: 5px 0;
        }
        .messages .content{
            color: #ce8483;
        }

        .messages .name{
            color: #ec971f;
        }
    </style>
</head>
<body>

    <form id="form" action="/index/message/inputMsg" method="post">
        <div class="input-group">
            <span class="input-group-addon" id="basic-addon1">昵称</span>
            <input id="name" name="name" type="text" class="form-control" placeholder="Username" aria-describedby="basic-addon1">
        </div>
        <textarea id="content" name="content" rows="10" style="margin-top: 10px;width: 100%;" placeholder="请在这里输入您的留言内容"></textarea>
        <div>
            <button id="btn" type="submit" style="float: right;width: 100px;" class="btn btn-success">发布</button>
        </div>
    </form>



    <div class="row" style="clear: both">

        {volist name="list" id="vo"}
            <div class="col-md-3">
                <div class="messages">
                    <p class="number"><strong>留言编号</strong><span>{$vo.Id}</span></p>
                    <p class="content text-center">{$vo.content}</p>
                    <p class="name text-right">{$vo.name}</p>
                    <p class="date text-right">{$vo.date}</p>
                </div>
            </div>
        {/volist}

    </div>

    <script>
        $(function () {
            $('#form').ajaxForm(function () {
                location.reload();
            })

        })
    </script>

</body>
</html>